package org.dromara.answer.domain.vo;

import java.util.Date;
import org.dromara.answer.domain.AiExams;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * 考试/测验视图对象 ai_exams
 *
 * @author Lion Li
 * @date 2025-04-09
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AiExams.class)
public class AiExamsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 考试ID，主键
     */
    @ExcelProperty(value = "考试ID，主键")
    private Long examId;

    /**
     * 考试标题
     */
    @ExcelProperty(value = "考试标题")
    private String title;

    /**
     * 考试描述
     */
    @ExcelProperty(value = "考试描述")
    private String description;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @ExcelProperty(value = "结束时间")
    private Date endTime;

    /**
     * 考试时长（分钟）
     */
    @ExcelProperty(value = "考试时长", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=钟")
    private Long duration;

    /**
     * 总分值
     */
    @ExcelProperty(value = "总分值")
    private Long totalScore;

    /**
     * 及格分数
     */
    @ExcelProperty(value = "及格分数")
    private Long passScore;

    /**
     * 状态：0-禁用，1-启用
     */
    @ExcelProperty(value = "状态：0-禁用，1-启用")
    private Integer status;

    /**
     * 题目数量
     */
    @ExcelProperty(value = "题目数量")
    private Integer questionCount;

    /**
     * 题目列表
     */
    private List<AiQuestionsVo> questions;

}
